#if !defined PROJECTILE_H
#define PROJECTILE_H

#include "Transform.h"
#include "Matrix.h"
#include "Primitive.h"
#include "Vec3.h"

class Projectile : public Transform{
      public:
           Projectile(Matrix m);
           Projectile(Matrix m, Vec3 d);
           virtual ~Projectile(); 
           Primitive *getBullet(){return bullet;}
           void setTrans(Vec3 tran){ matrix.setTrans(tran);}
           virtual void render(float timeElapsed);
           virtual void postRender(float timeElapsed);
	       virtual void update(float timeElapsed);
	       virtual RTTI_OBJECT_TYPE getType() const { return RTTI_PROJECTILE; }
      private: 
           Primitive *bullet;
           Vec3 max;
           Vec3 dir;
};

#endif // PROJECTILE_H
